package run.bottle.gof23.builder.d1;

//指挥：核心。负责指挥构建一个产品，产品如何构建，由它决定
public class Director {

    //按顺序组装产品
    public Product builder(Builder builder) {
        builder.builderA();
        builder.builderB();
        builder.builderC();
        builder.builderD();
        return builder.getProduct();
    }

}
